<?php


namespace app\common\model;


use app\common\exception\BaseException;
use think\Model;

class BaseModel extends Model
{
    /**
     * @param $code
     * @param $msg
     * @throws BaseException
     *//**
 * @param $code
 * @param string $msg
 * @throws BaseException
 */
    protected function throw_myexception($err_code, $msg = '') {
        throw new BaseException(['errorCode'=>$err_code, 'msg'=>$msg]);
    }
}